package cn.wolfcode.crm.serivce;

import cn.wolfcode.crm.domain.CashierBill;
import cn.wolfcode.crm.domain.CashierBillitem;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface ICashierBillService {
    void deleteByPrimaryKey(Long id);

    /**
     * 挂单
     * @param record
     */
    void onAccount(CashierBill record);

    /**
     * 付款
     * @param record
     */
    void pay(CashierBill record);
    /**
     * 取单
     */
    List<CashierBillitem> selectByPrimaryKey(String cardNumber);
    PageResult query(QueryObject qo);
    PageResult selectAll();
}
